<?php
/**
 * Created by PhpStorm.
 * User: adiljan
 * Date: 2021/10/06
 * Time: 18:39
 */

if(count($_POST)>0){
    echo "提交模式：POST";
    echo "<br>";
    print_r($_POST);
    echo "<br>";
    echo "我叫".$_POST['name'].", 今年".$_POST['age']."岁";
}

if(count($_GET)>0){
    echo "提交模式：GET";
    echo "<br>";
    print_r($_GET);
    echo "<br>";
    echo "我叫".$_GET['name'].", 今年".$_GET['age']."岁";
}